import Vue from 'vue'
import Vuex from 'vuex'
//import * as actions from './actions'
//import * as getters from './getters'

Vue.use(Vuex)

// 应用初始状态
const state = {
    username:'',
    
    setusername : function(name){
    	this.username = name 
		console.log(name,'name')
    },
    
}


// 创建 store 实例
export default new Vuex.Store({
//  actions,
//  getters,
    state
    //mutations
})